﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Inicio.aspx.cs" Inherits="Com.Binaria.SISCOB.Web.Inicio" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Pagina de Inicio del Sistema</title>
      
    <style type="text/css">
        /* Estilos de la pagina de inicio, especiales */
        html, body
        {
            margin-left: 0px;
            margin-top: 0px;
            margin-right: 0px;
            margin-bottom: 0px;
           /* background-image: url(../../imagenes/bg_body_blanco.jpg);*/
        }
        /* hack-ie6 */
        * html #contenedor_general #login
        {
            width: 560px;
            height: 260px;
            /*background-image: url(../../imagenes/login_bg.png);*/
            position: relative;
            left: 200px;
            right: 0px;
            bottom: 120px;
        }
        /* hack-ie7 */
        html > body #contenedor_general #login
        {
            width: 560px;
            left: 0px;
            background-repeat: no-repeat;
            /*background-image: url(../../imagenes/login_bg.png);*/
            position: absolute;
            left: 0px;
            right: 0px;
            bottom: 80px;
            height: 260px;
        }
        #contenedor_general #Copyright
        {
            position: absolute;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 0.7em;
            width: 100%;
            color: #4C535C;
            left: 0px;
            right: 0px;
            bottom: 5px;
        }
        #contenedor_general #Copyright img
        {
            vertical-align: middle;
        }
        #contenedor_general #flotante
        {
            height: 340px;
            width: 560px;
            position: relative;
            left: 350px;
            right: 0px;
            top: 15px;
        }
        #flotante_Seremi
        {
            height: 131px;
            width: 129px;
            position: relative;
            left: 560px;
            right: 0px;
            top: 80px;
        }
    </style>
    <link href="../../css/estilos.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <form id="form1" runat="server">
    <div id="flotante_Seremi">
                 <img src="../../App_Themes/Default/images/logo_rigth_seremi.png" />
            </div>
    <div id="contenedor_general">
        <div id="flotante">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="Login1" />
           
            <div id="login">
                <div id="usuario_contraseña">
                    <asp:Login 
                        ID="Login1" 
                        runat="server" 
                        DestinationPageUrl="~/Paginas/Mantto/Default.aspx" 
                        FailureAction="Refresh"
                        LoginButtonText="Aceptar" 
                        MembershipProvider="AspNetSqlMembershipProvider" 
                        PasswordLabelText="Clave:" 
                        PasswordRequiredErrorMessage="La clave es requerida." 
                        RememberMeText="Recuerde mis credenciales la próxima vez" 
                        TitleText="" 
                        LogoutAction="Redirect"
                        Enabled="true"
                        UserNameLabelText="Nombre Usuario:" 
                        UserNameRequiredErrorMessage="Nombre de Usuario es Requerido" 
                        onloggedin="Login1_LoggedIn"
                        onloggingin="Login1_LoggingIn" onauthenticate="Login1_Authenticate"
                        >
                        
                        <LayoutTemplate>
                         <table border="0" cellpadding="1" cellspacing="0" 
                                style="border-collapse:collapse; width: 306px";>
                                <tr>
                                <td>
                                    <img src="../../App_Themes/Default/images/logo_header_login.png" />
                                </td>
                                </tr>
                                </table>
                        
                            <table border="0" cellpadding="1" cellspacing="0" 
                                style="border-collapse:collapse; width: 306px;">
                                <tr>
                                    <td align="center" style="color:Red;">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                    </td>
                                </tr>
                            </table>
                            <table border="0" cellpadding="1" cellspacing="0"
                                style="border-collapse:collapse; width: 306px;" >
                                <tr>
                                    <td>
                                        <table border="0" cellpadding="0" width="100%">
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Nombre Usuario:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="UserName" runat="server" Width="180px" Enabled="true" ></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                        ControlToValidate="UserName" ErrorMessage="Nombre de Usuario es Requerido" 
                                                        ToolTip="Nombre de Usuario es Requerido" ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                           
                                            <tr >
                                                <td align="right" >
                                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Clave:</asp:Label>
                                                </td>
                                                <td >
                                                    <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="180px"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                        ControlToValidate="Password" ErrorMessage="La clave es requerida." 
                                                        ToolTip="La clave es requerida." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:CheckBox ID="RememberMe" runat="server" 
                                                        Text="Recuerde mis credenciales la próxima vez" ValidationGroup="Login1" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" colspan="2">
                                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Aceptar" 
                                                        ValidationGroup="Login1" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </LayoutTemplate>
                    </asp:Login>
                </div>
            </div>
            <div id="Copyright">
                © 2011 Todos los Derechos Reservados. Desarrollado por PAG.
                            <br />
            </div>
             
        </div>
    </div>
    </form>
</body>
</html>
